package com.huiztech.maystall.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.RelativeLayout;


public class MyInfoActivity extends Activity {

	private RelativeLayout userSafetyLayout, notpayLayout,msgLayout,backProductLayout;
	private ImageButton msgBtn;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_myinfo);
		
		backProductLayout = (RelativeLayout) findViewById(R.id.myinfo_back_product_layout);
		backProductLayout.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(MyInfoActivity.this,
						BackProductActivity.class);
				startActivity(intent);
			}
		});

		msgLayout = (RelativeLayout) findViewById(R.id.myinfo_msg_center_layout);
		msgLayout.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(MyInfoActivity.this,
						MsgCenterActivity.class);
				startActivity(intent);
			}
		});

		userSafetyLayout = (RelativeLayout) findViewById(R.id.myinfo_safety_layout);
		userSafetyLayout.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(MyInfoActivity.this,
						UserSafetyActivity.class);
				startActivity(intent);
			}
		});

		notpayLayout = (RelativeLayout) findViewById(R.id.myinfo_notpay_layout);
		notpayLayout.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(MyInfoActivity.this,
						HomeActivity.class);
				intent.putExtra("tabId", "1");
				startActivity(intent);
			}
		});

	}
}
